package com.tools.entity;

/**
 * 生成文件的上下文
 *
 * @author < a href=" ">ZhangYang</ a>
 * @version v1.0.01
 * @date 2018-07-30 15:36:38
 */
public class GeneratorContent {

  /** 数据库配置文件 */
  private DatabaseContent database;
  /** 基础信息 **/
  private BaseContent base;
  /** 实体类配置信息 */
  private EntityContent entity;
  /** 数据库表的属性 */
  private TableContent table;
  /** 实体类配置信息 */
  private ServiceContent service;
  /** 实体类配置信息 */
  private DaoContent dao;
  /** 实体类配置信息 */
  private ControllerContent controller;

  public BaseContent getBase() {
    return base;
  }

  public void setBase(BaseContent base) {
    this.base = base;
  }

  public TableContent getTable() {
    return table;
  }

  public void setTable(TableContent table) {
    this.table = table;
  }

  public EntityContent getEntity() {
    return entity;
  }

  public DatabaseContent getDatabase() {
    return database;
  }

  public void setDatabase(DatabaseContent database) {
    this.database = database;
  }

  public void setEntity(EntityContent entity) {
    this.entity = entity;
  }

  public ServiceContent getService() {
    return service;
  }

  public void setService(ServiceContent service) {
    this.service = service;
  }

  public DaoContent getDao() {
    return dao;
  }

  public void setDao(DaoContent dao) {
    this.dao = dao;
  }

  public ControllerContent getController() {
    return controller;
  }

  public void setController(ControllerContent controller) {
    this.controller = controller;
  }


  @Override
  public String toString() {
    return "GeneratorContent [database=" + database + ", entity=" + entity + ", service=" + service + ", dao=" + dao
      + ", controller=" + controller + "]";
  }

}
